6a6c75736a1365b2017a65a6a7c5897e90ffb058,IdeaPlugin/mps-core/src/jetbrains/mps/idea/core/projectView/MPSTreeStructureProvider.java,MPSTreeStructureProvider,getModelFile,#AbstractTreeNode#,307

Before Change


      return FileSystem.getInstance().getFileByPath(virtualFile.getPath());

    } else if (treeNode instanceof PsiDirectoryNode) {
      IFile ifile = FileSystem.getInstance().getFileByPath(((PsiDirectoryNode) treeNode).getVirtualFile().getPath());
      SModel model = SModelFileTracker.getInstance().findModel(ifile);
      if (model != null) return ifile;

After Change


      return FileSystem.getInstance().getFileByPath(virtualFile.getPath());

    } else if (treeNode instanceof PsiDirectoryNode) {
      VirtualFile virtualFile = ((PsiDirectoryNode) treeNode).getVirtualFile();
      if (virtualFile == null) {
        return null;
      }
      IFile ifile = FileSystem.getInstance().getFileByPath(virtualFile.getPath());
      SModel model = SModelFileTracker.getInstance().findModel(ifile);